-- GENERATED SPELL FOR [Kurzen Mindslave] --


function spell0_6366(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(11642,pUnit)
pUnit:RegisterEvent('Sorts_6366', 3500, 1)
end

function spell1_6366(pUnit, Event) --@Smoke Bomb,Self--
pUnit:FullCastSpellOnTarget(7964,pUnit)
pUnit:RegisterEvent('Sorts_6366', 4267, 1)
end

function Sorts_6366(pUnit, Event)
local choix_sorts_6366 = math.random(0, 1)
if choix_sorts_6366 == 0 then
pUnit:RegisterEvent('spell0_6366', 1, 1)
end
if choix_sorts_6366 == 1 then
pUnit:RegisterEvent('spell1_6366', 1, 1)
end
end

function mob6366_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6366', math.random(1500, 3000), 1)
end

function mob6366_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6366_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6366_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6366, 1, 'mob6366_Action')
RegisterUnitEvent(6366, 2, 'mob6366_Leave')
RegisterUnitEvent(6366, 3, 'mob6366_Kill')
RegisterUnitEvent(6366, 4, 'mob6366_Die')
